package com.fastCms.business.mall.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 杭州人参大健康管理有限公司 版权所有 © Copyright 2019<br>
 *
 * @Description: <br>
 * @Project: healthyPro <br>
 * @CreateDate: Created in 2019/6/28 下午2:08 <br>
 * @Author: <a href="lsquan@healthpro.vip">lsquan</a>
 */
@ApiModel(value = "AppProductMemberDiscountDetailVO", description = "产品的折扣信息")
@Data
public class AppProductMemberDiscountDetailVO {
    @ApiModelProperty(value = "产品Id", example = "1")
    @NotNull(message = "产品Id不能为空")
    private String productId;

    @ApiModelProperty(value = "是否有SKU", example = "1")
    @NotNull(message = "是否有SKu不能为空")
    private String hasSku;

    @ApiModelProperty(value = "skuId", example = "1")
    private String skuId;

    @ApiModelProperty(value = "折扣类型：1-普通会员卡折扣2-付费会员卡折扣3.共享卡折扣")
    private int discountType;

    @ApiModelProperty(value = "折扣金额")
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "折扣力度:9.8折;如果为10折,则不取(9折返回的为0.90,8.8折返回0.88)", example = "0.88")
    private BigDecimal discount;

    public AppProductMemberDiscountDetailVO() {
        super();
    }
}
